#pragma once
#include <iostream>
#include "polar.h"
#include <math.h>
using namespace std;

class point
{
public:
    point() {}

    point(int x, int y)
        :_x(x)
        , _y(y)
    {}

    void show()
    {
        cout << '(' << _x << ", " << _y << ')' << endl;
    }

    point&& operator+(const point& p)
    {
        return point(_x + p._x, _y + p._y);
    }

    point& operator=(const polar& obj)
    {
        int x = obj._p * cos(obj._tan);
        int y = obj._p * sin(obj._tan);

        return *this;
    }

    int _x = 0;
    int _y = 0;
};
